<?php
    // Make a MySQL Connection
    mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("db_zolo365") or die(mysql_error());

    // Get all the data from the "årgang" table
    $result = mysql_query("SELECT * FROM db_photos") 
    or die(mysql_error());  

    // while($row = mysql_fetch_array($result)) {
    //  echo "<img src='",$row['link_img'],"'/>";
    // }

    while($row = mysql_fetch_array($result)) {
     // echo "<img src='",$row['link_img'],"'/>";

     echo   "<div class='content'>
                <div><a href='",$row['link_img'],"'><img src='",$row['link_thumb'],"' title='",$row['title'],"' alt='",$row['title'],"' class='thumb' /></a>
                </div>
            </div>";
    }
?>